package banking.domain;

import java.util.ArrayList;
import java.util.List;

public class Bank {
    private static Bank bankInstance = new Bank();
    private List<Customer> customers;


    private Bank() {
        customers = new ArrayList<>();
    }

    public void addCustomer(String f, String l) {
        customers.add(new Customer(f, l));
    }

    public Customer getCustomer(int index) {
        return customers.get(index);
    }

    public int getNumOfCustomers() {
        return customers.size();
    }

    public static Bank getBank() {
        return bankInstance;
    }
}
